package com.juben.svr.service;
import com.juben.svr.domain.*;
import com.juben.svr.domain.Enum.TypeAndtheme;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.rmi.server.UID;
import java.util.List;
import java.util.Set;
//import org.springframework.data.jpa.repository.JpaRepository;

public interface UworkService{
    UWorks getworkByID(String WID);

    boolean createUWorks(UWorks uworks);

//    boolean insertScriptLabel(@Param("WID") Integer WID, @Param("BID") Integer BID);

    List<jb_types> getTypeList();

    List<Label> getLabelList();

    List<UWorks> getUWorksByUID(Integer UID);

    boolean updateUWorks(UWorks uWorks);

    //查询剧本题材列表
    List<Label> getLabelIdsByWID(String WID);

    String getTypeNameByID(Integer themeId);

    boolean updateUWorksByContract(UWorks uWorks);

    //根据剧本类型id，获取该类型下的所有剧本
    List<UWorks> getUWorkListByTypeId(Integer themeId);

    //根据剧本名称进行模糊搜索
    List<UWorks> getUWorkListByWName(String Wname);

//    boolean setPnameByID(String WID, String Pname);

    List<UWorks> getUWorkList(TypeAndtheme typeAndtheme);

    Boolean  insertTransaction(Transaction transaction);

    Boolean TransactionExite(Transaction transaction);

    Transaction getTransaction(Transaction transaction);

    Boolean setPartyAndTime(Transaction transaction);

    Boolean setTransaction(Transaction transaction);
}
